class Merge {
  Lpn1ItemVoDTO lpn1ItemVo;
  Lpn1ItemVoDTO lpn2ItemVo;

  Merge({
    this.lpn1ItemVo,
    this.lpn2ItemVo,
  });

  factory Merge.fromJson(Map<String, dynamic> json) {
    return Merge(
      lpn1ItemVo: Lpn1ItemVoDTO.fromJson(json["lpn1ItemVo"]),
      lpn2ItemVo: Lpn1ItemVoDTO.fromJson(json["lpn2ItemVo"]),
    );
  }

}

class Lpn1ItemVoDTO {
  List<ItemSkuListDTO> itemSkuList;
  String lpn;

  Lpn1ItemVoDTO({
    this.itemSkuList,
    this.lpn,
  });

  factory Lpn1ItemVoDTO.fromJson(Map<String, dynamic> json) {
    return Lpn1ItemVoDTO(
      itemSkuList: json['itemSkuList'] == null ? null : (new List<dynamic>.from(json['itemSkuList']).map((userJson) => ItemSkuListDTO.fromJson(userJson)).toList()),
      lpn: json["lpn"],
    );
  }
}

class ItemSkuListDTO {
  int qty;
  String sku;

  ItemSkuListDTO({
    this.qty,
    this.sku,
  });

  factory ItemSkuListDTO.fromJson(Map<String, dynamic> json) {
    return ItemSkuListDTO(
      qty: json["qty"],
      sku: json["sku"],
    );
  }
}

class MergeQr {
  String lpn1;
  String lpn2;
  String mergeLpn;

  Map<String, dynamic> toJson() {
    return {
      "lpn1": this.lpn1,
      "lpn2": this.lpn2,
      "mergeLpn": this.mergeLpn,
    };
  }
}

class DeviceBind{
  String positionCode;   //位置编码
  String deviceCode;//设备编码

  Map<String, dynamic> toJson() {
    return {
      "positionCode": this.positionCode,
      "deviceCode": this.deviceCode,
    };
  }
}
